package Dao;

import static org.junit.Assert.*;

import java.util.ArrayList;
import java.util.List;

import org.junit.Before;
import org.junit.Test;

import Entity.Thumb;

public class ThumbDaoTest {
	ThumbDao td=new ThumbDao();
	List<Thumb> tlist=new ArrayList<Thumb>();

	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void testAddThumbInformation() {
		assertEquals(1,td.addThumbInformation("2016194620190617125", "20161945"));
	}

	@Test
	public void testQueryThumbByResourceID() {
		tlist=td.queryThumbByResourceID("2016194620190617125");
		for(int i=0;i<tlist.size();i++) {
		assertEquals("2016194620190617125",tlist.get(i).resourceID);
		}
	}

}


